package com.globant.google.mendoza;

public class MendozaTestConstants {

  public static String merchantKey = "823621560492910";

  public static String merchantId = "Id8HZV5Ex2pKdvu9hGF15w";

  public static int calculationsTimeout = 3000;

  public static int callbackPort = 10008;

  public static int mendozaServerPort = 20000;

  public static String mendozaServerURL =
    "http://localhost" + mendozaServerPort;

  public static String mzaCheckoutCommand = "/mendoza/checkout";

  public static String mzaLoginCommand = "/mendoza/login";

  public static String mzaPlaceOrderCommand = "/mendoza/placeorder";

  public static String buyerEmail = "b9.atx.tiger@globant.com";

  public static String buyerPassword = "b9password";

  public static String googleCheckoutOrder = "1234567890";

  public static String sampleURL = "http://localhost";

  public static String sampleDirectory = "/home/foo";

  public static int samplePortNumber = 1;

  public static String callbackURL = "http://localhost:" + callbackPort;

  public static int googleCheckoutMockPort = 20001;

  public static int merchantAppMockPort = 20002;

  public static String googleCheckoutMockURL =
    "http://localhost:" + googleCheckoutMockPort;

  public static String merchantURL =
    "http://localhost:" + merchantAppMockPort;

  public static String cart = "<?xml version=\"1.0\" encoding=\"UTF-8\"?>"
    + "<checkout-shopping-cart xmlns=\"http://checkout.google.com/schema/2\">"
    + "<shopping-cart>"
    + "<items>"
    + "<item>"
    + "<item-name>iPod Nano</item-name>"
    + "<item-description>Super small MP3 player.</item-description>"
    + "<unit-price currency=\"USD\">100.0</unit-price>"
    + "<quantity>1</quantity>"
    + "</item>"
    + "</items>"
    + "</shopping-cart>"
    + "<checkout-flow-support>"
    + "<merchant-checkout-flow-support>"
    + "<shipping-methods>"
    + "<flat-rate-shipping name=\"Fed Ex\">"
    + "<price currency=\"USD\">5.0</price>"
    + "<shipping-restrictions>"
    + "<allowed-areas>"
    + "<us-state-area>"
    + "<state>CA</state>"
    + "</us-state-area>"
    + "</allowed-areas>"
    + "</shipping-restrictions>"
    + "</flat-rate-shipping>"
    + "</shipping-methods>"
    + "</merchant-checkout-flow-support>"
    + "</checkout-flow-support>"
    + "</checkout-shopping-cart>";

  public static String riskInformationNOtification =
    "<?xml version=\"1.0\" encoding=\"UTF-8\"?>"
    + "<risk-information-notification"
    + " xmlns=\"http://checkout.google.com/schema/2\""
    + " serial-number=\"701724719358821-00005-5\">"
    + "<timestamp>2007-08-23T14:17:17.000Z</timestamp>"
    + "<google-order-number>"
    + MendozaTestConstants.googleCheckoutOrder
    + "</google-order-number>"
    + "<risk-information>"
    + "<billing-address>"
    + "<contact-name>Pablo Osso</contact-name>"
    + "<company-name/>"
    + "<email>pablo.osso@globant.com</email>"
    + "<phone/>"
    + "<fax/>"
    + "<address1>1</address1>"
    + "<address2/>"
    + "<country-code>US</country-code>"
    + "<city>NY</city>"
    + "<region>NY</region>"
    + "<postal-code>10101</postal-code>"
    + "</billing-address>"
    + "<ip-address>200.69.205.154</ip-address>"
    + "<avs-response>Y</avs-response>"
    + "<cvn-response>M</cvn-response>"
    + "<eligible-for-protection>true</eligible-for-protection>"
    + "<partial-cc-number>1111</partial-cc-number>"
    + "<buyer-account-age>108</buyer-account-age>"
    + "</risk-information>"
    + "</risk-information-notification>";

  public static String orderStateChangeNotification =
    "<?xml version=\"1.0\" encoding=\"UTF-8\"?>"
    + "<order-state-change-notification"
    + " xmlns=\"http://checkout.google.com/schema/2\""
    + " serial-number=\"701724719358821-00005-1\">"
    + "<timestamp>2007-08-23T14:17:17.000Z</timestamp>"
    + "<google-order-number>"
    + MendozaTestConstants.googleCheckoutOrder
    + "</google-order-number>"
    + "<new-fulfillment-order-state>NEW</new-fulfillment-order-state>"
    + "<new-financial-order-state>CHARGEABLE</new-financial-order-state>"
    + "<previous-fulfillment-order-state>NEW</previous-fulfillment-order-state>"
    + "<previous-financial-order-state>REVIEWING"
    + "</previous-financial-order-state>"
    + "</order-state-change-notification>";

  public static String newOrderNotification =
    "<?xml version=\"1.0\" encoding=\"UTF-8\"?>"
    + "<new-order-notification xmlns=\"http://checkout.google.com/schema/2\""
    + " serial-number=\"701724719358821-00001-7\">"
    + "<timestamp>2007-08-23T14:17:15.000Z</timestamp>"
    + "<shopping-cart>"
    + "<items>"
    + "<item>"
    + "<quantity>1</quantity>"
    + "<unit-price currency=\"USD\">100.0</unit-price>"
    + "<item-name>iPod Nano</item-name>"
    + "<item-description>Super small MP3 player.</item-description>"
    + "</item>"
    + "</items>"
    + "</shopping-cart>"
    + "<order-adjustment>"
    + "<merchant-codes/>"
    + "<shipping>"
    + "<flat-rate-shipping-adjustment>"
    + "<shipping-name>Fed Ex</shipping-name>"
    + "<shipping-cost currency=\"USD\">5.0</shipping-cost>"
    + "</flat-rate-shipping-adjustment>"
    + "</shipping>"
    + "<total-tax currency=\"USD\">8.4</total-tax>"
    + "<adjustment-total currency=\"USD\">13.4</adjustment-total>"
    + "</order-adjustment>"
    + "<google-order-number>"
    + MendozaTestConstants.googleCheckoutOrder
    + "</google-order-number>"
    + "<buyer-shipping-address>"
    + "<contact-name>Pablo Osso Globant</contact-name>"
    + "<company-name/>"
    + "<email>pablo.osso@globant.com</email>"
    + "<phone/>"
    + "<fax/>"
    + "<address1>1600 Amphitheatre Parkway</address1>"
    + "<address2/>"
    + "<country-code>US</country-code>"
    + "<city>montain view</city>"
    + "<region>CA</region>"
    + "<postal-code>94043</postal-code>"
    + "</buyer-shipping-address>"
    + "<buyer-billing-address>"
    + "<contact-name>Pablo Osso</contact-name>"
    + "<company-name/>"
    + "<email>pablo.osso@globant.com</email>"
    + "<phone/>"
    + "<fax/>"
    + "<address1>1</address1>"
    + "<address2/>"
    + "<country-code>US</country-code>"
    + "<city>NY</city>"
    + "<region>NY</region>"
    + "<postal-code>10101</postal-code>"
    + "</buyer-billing-address>"
    + "<buyer-marketing-preferences>"
    + "<email-allowed>true</email-allowed>"
    + "</buyer-marketing-preferences>"
    + "<order-total currency=\"USD\">113.4</order-total>"
    + "<fulfillment-order-state>NEW</fulfillment-order-state>"
    + "<financial-order-state>REVIEWING</financial-order-state>"
    + "<buyer-id>242644914901050</buyer-id>"
    + "</new-order-notification>";
}
